﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.queryzer2.Dao.Base;
using Com.queryzer2.Dao.Interface;
using Com.queryzer2.Domain.Entities;
using Oracle.DataAccess.Client;
using Com.queryzer2.Domain;
using System.Data;

namespace Com.queryzer2.Dao.Impl
{
    public class PraticaV01Dao : OracleDao<OracleSessionManager, ISessionModel>, IPraticaV01Dao
    {

        public PraticaV01Dao(OracleSessionManager daoContext)
            : base(daoContext)
        {
            if (!base.Context.Session_isActive())
            {
                base.Context.Session_Init();
                base.CurrentConnection.Open();
            }
        }
        
        private OracleParameter[] MappingParams(GEP_DATIV01 r, bool isInsert)
        {
            OracleParameter[] oparams;
            oparams = new OracleParameter[3];

            return oparams;
        }

        #region IDao<GEP_DATIV01,decimal> Members

        public Dictionary<decimal, GEP_DATIV01> GetAll()
        {
            throw new NotImplementedException();
        }

        public GEP_DATIV01 GetById(decimal id)
        {
            return null;
        }

        public void Insert(GEP_DATIV01 entity)
        {

        }

        public void Update(GEP_DATIV01 entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(decimal id)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IDisposable Members

        public void Dispose()
        {
            if (!base.Context.TransactionModeOn)
            {
                base.CurrentConnection.Close();
            }
        }

        #endregion
    }
}
